/*
** WPANE.C: Divides a window into many panes.
*/

#include <pictor.h>

void main()
{
   int i,handle1,handle2;

   /* initialize library */
   initvideo();

   wopen(5,6,17,70,foreback(BOLD+CYAN,BLUE),0x00);

   handle1 = 0;
   handle2 = wpane(WP_VERTICAL,35);

   for(i = 0;i < 8;i++) {
      setwpane(handle1);
      xprintf(wputs,"Pane handle: %d",handle1);
      handle1 = wpane(WP_HORIZONTAL,3);

      setwpane(handle2);
      xprintf(wputs,"Pane handle: %d",handle2);
      handle2 = wpane(WP_HORIZONTAL,3);
   }
   kbdread();
   wclose();
}
